
package com.appleyk.Proxy.device;

/**
 * @author chenshihong02
 * @version 1.0
 * @created 2018/12/23 下午6:34
 **/
public class Gree {

	private double Temperature;
	private String type;
	private String id;
	private String locationName;
	private String deviceName;
	private String status;

	public String getLocation() {
		return locationName;
	}

	public void setLocation(String location) {
		this.locationName = location;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void cool() {
		Temperature -= 1;
		System.out.println("格力空调开始进行降温操作。");
		System.out.println("目标温度值为： " + Temperature);
	}

	public void warm() {
		Temperature += 1;
		System.out.println("设备："+id+" 开始进行升温操作。");
		System.out.println("目标温度值为： " + Temperature);
	}

	public double getTemperature() {
		return Temperature;
	}

	public void setTemperature(double t) {
//		System.out.println("格力空调温度设置为： " + t);
		Temperature = t;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
//		if (status.equals("on")) {
//			System.out.println("格力空调打开。");
//		} else {
//			System.out.println("格力空调关闭。");
//		}

		this.status = status;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}